#include <iostream>
using namespace std;
int main()
{
    int val1, val2;
    cin >> val1 >> val2;
    while (val1 < val2)
    {
        cout << val1 << " ";
        ++val1;
    }

    while (val1 >= val2)
    {
        cout << val2 << " ";
        ++val2;
    }
    cout << endl;
    // system("pause");
    return 0;
} 